package edu.spec.student.dao.iface;

import edu.spec.student.model.Student;
import edu.spec.student.model.event.Event;
import edu.spec.student.model.event.StudentEvent;
import edu.spec.basic.model.enumeration.AttendStatus;
import org.madgecko.basic.dao.IBaseDao;

import java.util.List;

/**
 * Created by MadFrog on 2017/6/12.
 */
public interface IStudentEventDao extends IBaseDao<StudentEvent> {
    List<Event> listUnAttendEvent(Integer studentId);
    List<Event> listAttendedEvent(Integer studentId);
    void signIn(String openId, Integer eventId);
    StudentEvent load(String openId, Integer eventId);
    void deleteByEvent(Integer eventId);
    List<Student> listStudentByCon(Integer eventId, Integer clazzId, AttendStatus attendStatus);
    List<Student> listStudentByCon(Integer eventId);
    void countAttend(Integer eventId);
}
